import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import qiankunPkg from 'vite-plugin-qiankun';
const qiankun = qiankunPkg.default || qiankunPkg;

export default defineConfig({
  base: '/',
  plugins: [vue(), qiankun('sub-app-basic', { useDevMode: true })],
  server: {
    port: 7101,
    headers: { 'Access-Control-Allow-Origin': '*' }
  }
});